package com.itheima.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.tomcat.jni.User;
import org.springframework.stereotype.Repository;

import java.util.List;


@Mapper //声明是一个Mapper接口  等同在xml中配置<Mapper  package=" com......">
@Repository   //注入到spring容器中
public interface UserDao {

    /**
     * 查找所有用户
     * @return  list<User>
     */
    List<User> findAll() ;

}
